package cn.stylefeng.guns.modular.User.param;

import cn.stylefeng.guns.core.pojo.base.param.BaseParam;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class UserParam extends BaseParam {

    /**
     * id
     */
    @NotNull(message = "id不能为空",groups = {edit.class,delete.class})
    private Long id;

    @NotNull(message = "id不能为空",groups = {edit.class,add.class})
    private int pid;

    /**
     * account
     */
    @NotNull(message = "account不能为空",groups = {add.class,edit.class})
    private String account;

    /**
     * password
     */
    @NotNull(message = "password不能为空",groups = {add.class,edit.class})
    private String password;


    /**
     * name
     */
    @NotNull(message = "name不能为空",groups = {add.class,edit.class})
    private String name;

    /**
     * avatar
     */
    @NotNull(message = "avatar不能为空",groups = {add.class,edit.class})
    private Long avatar;

    /**
     * birthday
     */
    @NotNull(message = "birthday不能为空",groups = {add.class,edit.class})
    private Date birthday;

    /**
     * sex
     */
    @NotNull(message = "sex不能为空",groups = {add.class,edit.class})
    private Integer sex;


    @NotNull(message = "score不能为空",groups = {add.class,edit.class})
    private float score;
    /**
     * email
     */
    @NotNull(message = "email不能为空",groups = {add.class,edit.class})
    private String email;

    /**
     * phone
     */
    @NotNull(message = "phone不能为空",groups = {add.class,edit.class})
    private String phone;

    /**
     * tel
     */
    @NotNull(message = "tel不能为空",groups = {add.class,edit.class})
    private String tel;

    /**
     * 管理员类型（0超级管理员 1非管理员）
     */
    @NotNull(message = "管理员类型（0超级管理员 1非管理员）不能为空",groups = {add.class,edit.class})
    private Integer adminType;

    /**
     * 状态（字典 0正常 1冻结 2删除）
     */
    @NotNull(message = "状态（字典 0正常 1冻结 2删除）不能为空",groups = {add.class,edit.class})
    private Integer status;

}
